package com.coocaa.x.app.hall.view.background;

import android.content.Context;
import android.net.Uri;

import com.coocaa.x.app.hall.view.IViewComponent;
import com.coocaa.x.app.hall.view.IViewFactory;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.drawee.drawable.ScalingUtils;
import com.facebook.drawee.generic.RoundingParams;
import com.facebook.drawee.interfaces.DraweeController;
import com.facebook.drawee.view.SimpleDraweeView;
import com.facebook.imagepipeline.common.ResizeOptions;
import com.facebook.imagepipeline.request.ImageRequest;
import com.facebook.imagepipeline.request.ImageRequestBuilder;

/**
 * Created by luwei on 15-6-16.
 */
public class BackgroundFactory implements IViewFactory {
    Context mContext;

    public BackgroundFactory(Context context) {
        mContext = context;
    }

    public enum TYPE {
        RECOMMEND,
        CHANNEL,
        LIST
    }

    @Override
    public IViewComponent createComponent(String type) {
        BackgroundComponent bc = new BackgroundComponent(mContext);

        return bc;
    }
}
